<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改div包裹的数据内容</title>
    <script src="./js/vue.js"></script>
    <script>
        window.onload = function() {
            // # 2.绑定vue对象
            var vm = new Vue({
                // # 绑定标签
                //              elements: 选择器 selector
                el: "div",
                // #3. 声明变量
                data: {
                    content: '标签包裹的内容',
                    message: "链接数据",
                    pra: "段落内容",
                    spancontent: "span内容"
                }
            })
        }
    </script>
</head>

<body>
    <!-- # 1.绑定标签 vue 模板变量 {{ key }} -->
    <div>{{ content }}
        <a href="">{{message}}</a>
        <a href="">{{message}}</a>
        <p>{{ pra }}</p>
        <span>{{ spancontent }}</span>
    </div>

</body>

</html>